Password search

 

Now the passwords, here is starting project. are the sorted list. Write these methods.:

 

  • linary and binary search
  • public int findHowMany (String yourPassword) that will return how many of the list are yourPassword
  • public void findTop(int howMany) this will print all passwords that have been used howMany times
  • public void findAllDerivatives(String word) that will print all the passwords that contain word and how many of each there are. So if they put hello; it might say helloDude - 4 and so on. There is a string method, .contains(str) which will return true if the string contains sr anywhere
  • Advanced public void findTopHundred() that will print the top 100 passwords sorted (so the password used the most is first) with what percent of the time each is used.